/* 手机前端框架 - 可爱的iOS风格样式 */

/* 引入Font Awesome */
@import url('');

/* 触发按钮 */
.mobile-phone-trigger {
  position: absolute;
  bottom: 140px;
  left: 10px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #eee;
  border: none;
  font-size: 18px;
  cursor: pointer;
  z-index: 9999;
  box-shadow: 0 4px 15px rgba(255, 154, 158, 0.4);
  transition: all 0.3s ease;
}

.mobile-phone-trigger:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(255, 154, 158, 0.6);
}

/* 手机容器 */
.mobile-phone-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transform: scale(0.9);
  transition: all 0.3s ease;
}

.mobile-phone-container.active {
  opacity: 1;
  transform: scale(1);
}

/* 遮罩层 */
.mobile-phone-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* 手机框架 */
.mobile-phone-frame {
  position: relative;
  width: 70%;
  max-width: 375px;
  aspect-ratio: 375/737;
  background: #333;
  border-radius: 40px;
  padding: 8px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

.mobile-phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 32px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* 状态栏 */
.mobile-status-bar {
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  font-size: 14px;
  font-weight: 600;
}

.status-left .time {
  color: #1a1a1a;
  font-weight: 700;
}

.status-center {
  flex: 1;
  display: flex;
  justify-content: center;
}

.dynamic-island {
  width: 126px;
  height: 30px;
  background: #1a1a1a;
  border-radius: 15px;
  position: relative;
  overflow: hidden;
}

.dynamic-island::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 20px;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  background: #00ff00;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}

.status-right {
  display: flex;
  align-items: center;
  gap: 5px;
}

.battery {
  display: flex;
  align-items: center;
  gap: 2px;
  color: #1a1a1a;
  font-size: 12px;
}

/* 主内容区域 */
.mobile-content {
  flex: 1;
  position: relative;
  overflow: hidden;
  height: 100%;
  padding-bottom: 0.4rem;
}

.home-screen {
  height: 101%;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: #fff;
  border-radius: 0 0 20px 20px;
  background: url(../mobile/images/p-bg.jpg) no-repeat center center;
  background-size: cover;
}

.no-chat-selected {
  text-align: center;
  color: #333;
  font-size: 16px;
  font-weight: 600;
}

/* 时间天气卡片 */
.weather-card {
  background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
  border-radius: 20px;
  padding: 0 !important;
  box-shadow: 0 4px 15px rgba(168, 237, 234, 0.3);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0 !important;
}

.app-screen,
.app-content {
  border-radius: 0 0 20px 20px;
}

.weather-time {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.current-time {
  font-size: 32px;
  font-weight: 700;
  color: #2d3748;
}

.current-date {
  font-size: 16px;
  color: #4a5568;
}

.weather-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.weather-icon {
  font-size: 32px;
}

.weather-temp {
  font-size: 20px;
  font-weight: 600;
  color: #2d3748;
}

.weather-desc {
  font-size: 14px;
  color: #4a5568;
}

/* 快捷功能区 */
.quick-actions {
  display: flex;
  gap: 15px;
  margin-bottom: 10px;
}

.quick-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 15px;
  padding: 10px 15px;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.quick-icon {
  font-size: 20px;
}

.quick-label {
  font-size: 14px;
  color: #2d3748;
  font-weight: 500;
}

/* 应用页面容器 */
.app-pages-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.app-pages-wrapper {
  display: flex;
  flex: 1;
  transition: transform 0.3s ease-out;
  touch-action: pan-y;
}

.app-page {
  min-width: 100%;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
}

.page-indicators {
  position: absolute;
  bottom: 5px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
  display: none;
}

.indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
  cursor: pointer;
}

.indicator.active {
  background: rgba(255, 255, 255, 0.8);
  transform: scale(1.2);
}

/* 应用图标网格 */
.app-grid {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.app-row {
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 20px;
}

.app-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: transform 0.2s ease;
}



.app-icon-bg {
  width: 60px;
  height: 60px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.app-icon-bg.pink {
  background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
}

.app-icon-bg.blue {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.app-icon-bg.purple {
  background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
}

.app-icon-bg.orange {
  background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
}

.app-icon-bg.green {
  background: linear-gradient(135deg, #d299c2 0%, #fef9d7 100%);
}

.app-icon-bg.yellow {
  background: linear-gradient(135deg, #89f7fe 0%, #66a6ff 100%);
}

.app-icon-bg.red {
  background: linear-gradient(135deg, #feb2b2 0%, #f56565 100%);
}

.app-icon-bg.cyan {
  background: linear-gradient(135deg, #84fab0 0%, #8fd3f4 100%);
}

.app-icon-bg.gray {
  background: linear-gradient(135deg, #bdc3c7 0%, #2c3e50 100%);
}

.app-label {
  font-size: 12px;
  color: #2d3748;
  font-weight: 500;
  text-align: center;
}

/* 底部装饰 */
.bottom-decoration {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: auto;
  padding-bottom: 20px;
}

.cute-animal {
  font-size: 24px;
  animation: bounce 2s infinite;
}

.cute-animal:nth-child(2) {
  animation-delay: 0.3s;
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }

  40% {
    transform: translateY(-10px);
  }

  60% {
    transform: translateY(-5px);
  }
}

/* 应用界面 */
.app-screen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, #ffeef8 0%, #fff5f7 100%);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
}

.app-screen.slide-in {
  transform: translateX(100%);
}

.app-header {
  height: 40px;
  /* 减少高度 48px → 40px */
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 15px;
  /* 减少左右padding */
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.back-button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: background 0.2s ease;
}

.back-button:hover {
  background: rgba(0, 0, 0, 0.1);
}

.back-icon {
  font-size: 20px;
  color: #2d3748;
}

.app-title {
  font-size: 16px;
  /* 减小字体 18px → 16px */
  font-weight: 600;
  color: #2d3748;
  margin: 0;
}

.app-header-right {
  display: flex;
  align-items: center;
  gap: 6px;
  /* 减小间距 10px → 6px */
  min-width: 40px;
  justify-content: flex-end;
  margin-left: auto;
  /* 确保右侧组件靠右 */
}

.app-header-btn {
  background: none;
  border: none;
  color: var(--text-color);
  cursor: pointer;
  font-size: 13px;
  /* 进一步减小字体 14px → 13px */
  padding: 3px 5px;
  /* 进一步减小padding */
  border-radius: 6px;
  transition: all 0.2s ease;
  margin-left: 3px;
  /* 进一步减小左边距 4px → 3px */
  min-width: 38px;
  /* 减小最小宽度 44px → 38px */
  text-align: center;
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
}

.app-header-btn i {
  font-size: 14px;
}

.app-header-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.app-header-btn:active {
  transform: scale(0.95);
}

.app-header-btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

.app-header-btn[disabled]:hover {
  background: none;
  transform: none;
}

/* 论坛按钮特殊样式 */
.app-header-btn[style*='#e5c9c7'] {
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.app-header-btn[style*='#e5c9c7']:hover {
  background: #d4b8b6 !important;
  transform: scale(1.05);
}

/* 论坛应用特殊响应式优化 */
@media (max-width: 480px) {
  .app-header[data-app='forum'] .app-header-btn {
    font-size: 10px;
    padding: 2px 3px;
    min-width: 28px;
    margin-left: 1px;
  }

  .app-header[data-app='forum'] .app-title {
    font-size: 14px;
  }
}

@media (max-width: 360px) {
  .app-header[data-app='forum'] .app-header-btn {
    font-size: 9px;
    padding: 1px 2px;
    min-width: 24px;
    margin-left: 1px;
  }

  .app-header[data-app='forum'] .app-title {
    font-size: 13px;
  }
}

/* 微博应用特殊响应式优化 - 4个按钮需要更紧凑的布局 */
@media (max-width: 480px) {
  .app-header[data-app='weibo'] .app-header-btn {
    font-size: 9px;
    padding: 2px 3px;
    min-width: 26px;
    margin-left: 1px;
  }

  .app-header[data-app='weibo'] .app-header-btn span {
    font-size: 8px;
  }

  .app-header[data-app='weibo'] .app-title {
    font-size: 14px;
  }
}

@media (max-width: 420px) {
  .app-header[data-app='weibo'] .app-header-btn {
    font-size: 8px;
    padding: 1px 2px;
    min-width: 24px;
    margin-left: 1px;
  }

  .app-header[data-app='weibo'] .app-header-btn span {
    font-size: 7px;
  }

  .app-header[data-app='weibo'] .app-title {
    font-size: 13px;
  }
}

@media (max-width: 360px) {
  .app-header[data-app='weibo'] .app-header-btn {
    font-size: 7px;
    padding: 1px 2px;
    min-width: 22px;
    margin-left: 1px;
  }

  .app-header[data-app='weibo'] .app-header-btn span {
    display: none;
    /* 在最小屏幕上隐藏文字，只显示图标 */
  }

  .app-header[data-app='weibo'] .app-header-btn i {
    font-size: 10px;
  }

  .app-header[data-app='weibo'] .app-title {
    font-size: 12px;
  }
}

/* 响应式设计 */
@media (max-width: 480px) {
  .app-header-btn {
    font-size: 11px;
    padding: 2px 4px;
    min-width: 32px;
    margin-left: 2px;
  }

  .app-header-btn i {
    font-size: 12px;
  }
}

@media (max-width: 420px) {
  .app-header-btn {
    font-size: 10px;
    padding: 2px 3px;
    min-width: 28px;
    margin-left: 2px;
  }

  .app-header-btn i {
    font-size: 11px;
  }
}

@media (max-width: 360px) {
  .app-header-btn {
    font-size: 9px;
    padding: 1px 3px;
    min-width: 26px;
    margin-left: 1px;
  }

  .app-header-btn i {
    font-size: 10px;
  }

  .app-title {
    font-size: 13px;
  }
}

/* 论坛风格设置页面样式 */
.forum-styles-container {
  padding: 20px;
  max-width: 800px;
  margin: 0 auto;
}

.styles-header {
  text-align: center;
  margin-bottom: 30px;
}

.styles-header h3 {
  color: var(--text-color);
  margin-bottom: 8px;
  font-size: 24px;
}

.styles-header p {
  color: var(--text-secondary);
  font-size: 14px;
}

.styles-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  gap: 15px;
}

.import-export-actions {
  display: flex;
  gap: 10px;
}

.custom-styles-list {
  margin-bottom: 30px;
}

.custom-styles-list h4 {
  color: var(--text-color);
  margin-bottom: 15px;
  font-size: 18px;
}

#custom-styles-container {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  min-height: 200px;
  background: var(--card-bg);
}

.no-styles-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  text-align: center;
}

.placeholder-icon {
  font-size: 48px;
  margin-bottom: 15px;
  opacity: 0.5;
}

.placeholder-text {
  color: var(--text-secondary);
  font-size: 16px;
  margin-bottom: 8px;
}

.placeholder-hint {
  color: var(--text-light);
  font-size: 14px;
}

.custom-style-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  border-bottom: 1px solid var(--border-color);
  transition: background-color 0.2s ease;
}

.custom-style-item:hover {
  background-color: rgba(0, 0, 0, 0.02);
}

.custom-style-item:last-child {
  border-bottom: none;
}

.style-info {
  flex: 1;
}

.style-name {
  font-weight: 500;
  color: var(--text-color);
  margin-bottom: 4px;
}

.style-description {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.style-meta {
  font-size: 12px;
  color: var(--text-light);
  margin-top: 4px;
}

.style-actions {
  display: flex;
  gap: 8px;
}

.style-action-btn {
  background: none;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 6px 10px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--text-secondary);
}

.style-action-btn:hover {
  background-color: var(--accent-pink);
  color: white;
  border-color: var(--accent-pink);
}

.style-action-btn.delete:hover {
  background-color: #ff4757;
  border-color: #ff4757;
}

.styles-info {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 20px;
}

.styles-info h4 {
  color: var(--text-color);
  margin-bottom: 15px;
  font-size: 16px;
}

.styles-info ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.styles-info li {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 8px;
  padding-left: 20px;
  position: relative;
}

.styles-info li:before {
  content: '•';
  color: var(--accent-pink);
  position: absolute;
  left: 0;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .forum-styles-container {
    padding: 15px;
  }

  .styles-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .import-export-actions {
    justify-content: center;
  }

  .custom-style-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .style-actions {
    align-self: stretch;
    justify-content: flex-end;
  }
}

@media (max-width: 480px) {
  .styles-header h3 {
    font-size: 20px;
  }

  .import-export-actions {
    flex-direction: column;
    gap: 8px;
  }

  .style-actions {
    flex-wrap: wrap;
    gap: 6px;
  }

  .style-action-btn {
    font-size: 11px;
    padding: 5px 8px;
  }
}

/* 弹窗样式 */
.modal {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background-color: var(--card-bg);
  border-radius: 12px;
  width: 90%;
  max-width: 500px;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  position: relative;
  animation: slideUp 0.3s ease-out;
  border: 1px solid var(--border-color);
}

@keyframes slideUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 20px 15px 20px;
  border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-color);
}

.modal-close-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 24px;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.modal-close-btn:hover {
  background-color: rgba(0, 0, 0, 0.1);
  color: var(--text-color);
}

.modal-body {
  padding: 20px;
}

/* 表单样式 */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--text-color);
  font-size: 14px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 14px;
  color: var(--text-color);
  background-color: var(--input-bg);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-pink);
  box-shadow: 0 0 0 3px rgba(229, 201, 199, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.5;
}

.input-hint {
  margin-top: 6px;
  font-size: 12px;
  color: var(--text-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.char-count {
  font-weight: 500;
}

.form-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}

.btn-primary,
.btn-secondary {
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-primary {
  background-color: var(--accent-pink);
  color: white;
}

.btn-primary:hover:not(:disabled) {
  background-color: #d4b8b6;
  transform: translateY(-1px);
}

.btn-primary:disabled {
  background-color: #ccc;
  cursor: not-allowed;
  transform: none;
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background-color: rgba(0, 0, 0, 0.05);
  color: var(--text-color);
}

/* 响应式弹窗 */
@media (max-width: 768px) {
  .modal-content {
    width: 95%;
    margin: 10px;
  }

  .modal-header,
  .modal-body {
    padding: 16px;
  }

  .form-actions {
    flex-direction: column;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .modal-content {
    width: 98%;
    margin: 5px;
  }

  .modal-header h3 {
    font-size: 16px;
  }

  .form-group input,
  .form-group textarea {
    padding: 10px;
    font-size: 13px;
  }
}

/* 风格预览弹窗样式 */
.style-preview-content {
  max-width: 700px;
  width: 95%;
}

.style-info {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 20px;
}

.style-meta-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.meta-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.meta-label {
  font-weight: 500;
  color: var(--text-color);
  min-width: 80px;
  flex-shrink: 0;
}

.meta-value {
  color: var(--text-secondary);
  line-height: 1.4;
  word-break: break-word;
}

.editor-toolbar {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

.toolbar-btn {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 6px 12px;
  font-size: 12px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 4px;
}

.toolbar-btn:hover {
  background: var(--accent-pink);
  color: white;
  border-color: var(--accent-pink);
}

.style-editor {
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  font-size: 13px;
  line-height: 1.5;
  background: #f8f9fa;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 15px;
  resize: vertical;
  min-height: 300px;
  color: #333;
}

.style-editor:focus {
  outline: none;
  border-color: var(--accent-pink);
  box-shadow: 0 0 0 3px rgba(229, 201, 199, 0.1);
  background: white;
}

.editor-hint {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  font-size: 12px;
}

.hint-text {
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 6px;
}

.char-count-preview {
  color: var(--text-secondary);
  font-weight: 500;
}

.preview-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
  gap: 15px;
}

.action-group {
  display: flex;
  gap: 10px;
}

/* 响应式预览弹窗 */
@media (max-width: 768px) {
  .style-preview-content {
    width: 98%;
  }

  .style-meta-info {
    gap: 6px;
  }

  .meta-item {
    flex-direction: column;
    gap: 4px;
  }

  .meta-label {
    min-width: auto;
    font-size: 13px;
  }

  .meta-value {
    font-size: 13px;
  }

  .editor-toolbar {
    flex-wrap: wrap;
    gap: 6px;
  }

  .toolbar-btn {
    font-size: 11px;
    padding: 5px 10px;
  }

  .style-editor {
    font-size: 12px;
    padding: 12px;
    min-height: 250px;
  }

  .preview-actions {
    flex-direction: column;
    gap: 12px;
  }

  .action-group {
    width: 100%;
    justify-content: center;
  }

  .btn-primary,
  .btn-secondary {
    flex: 1;
    min-width: 120px;
  }
}

@media (max-width: 480px) {
  .style-info {
    padding: 12px;
  }

  .editor-hint {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .hint-text {
    font-size: 11px;
  }

  .char-count-preview {
    font-size: 11px;
  }

  .action-group {
    flex-direction: column;
    gap: 8px;
  }
}

/* 直播应用header特殊样式 */
.viewer-count {
  display: flex;
  align-items: center;
  gap: 3px;
  /* 减小间距 5px → 3px */
  font-size: 12px;
  /* 减小字体 14px → 12px */
  color: var(--text-color);
  background: rgba(255, 255, 255, 0.1);
  padding: 3px 6px;
  /* 减小padding 4px 8px → 3px 6px */
  border-radius: 10px;
  /* 减小圆角 12px → 10px */
  margin-right: 3px;
  /* 减小右边距 5px → 3px */
}

.viewer-count i {
  color: #fb7299;
  font-size: 10px;
  /* 减小图标 12px → 10px */
}

.gift-log-btn {
  color: #fb7299 !important;
}

.end-stream-btn {
  color: #ff4d4f !important;
}

.app-content {
  flex: 1;
  overflow-y: auto;
  height: calc(100% - 40px);
  /* 更新高度计算 48px → 40px */
  padding-bottom: 0;
}

/* 应用内容样式 */
.messages-app {
  height: 100%;
  background: #fff;
}

.message-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.message-item {
  display: flex;
  gap: 12px;
  padding: 15px;
  background: transparent; /* 完全透明背景 */
  border-radius: 0; /* 移除圆角 */
  backdrop-filter: none; /* 移除磨砂效果 */
  box-shadow: none; /* 移除阴影 */
}

.message-avatar {
  font-size: 24px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
}

.message-content {
  flex: 1;
}

.message-name {
  font-size: 14px;
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 5px;
}

.message-text {
  font-size: 14px;
  color: #4a5568;
  line-height: 1.4;
  margin-bottom: 5px;
}

.message-time {
  font-size: 12px;
  color: #718096;
}

/* 相册应用 */
.gallery-app {
  height: 100%;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.photo-item {
  aspect-ratio: 1;
  background: linear-gradient(135deg, #ffeef8 0%, #fff5f7 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease;
}

.photo-item:hover {
  transform: scale(1.05);
}

/* 设置应用 */
.settings-app {
  height: 100%;
}

.setting-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.setting-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.setting-item:hover {
  transform: translateX(5px);
}

.setting-icon {
  font-size: 20px;
  width: 30px;
  text-align: center;
}

.setting-label {
  flex: 1;
  font-size: 16px;
  color: #2d3748;
  font-weight: 500;
}

.setting-arrow {
  font-size: 16px;
  color: #718096;
}

/* 日记应用 */
.diary-app {
  height: 100%;
}

.diary-header {
  margin-bottom: 20px;
}

.diary-header h3 {
  font-size: 20px;
  color: #2d3748;
  margin: 0;
  text-align: center;
}

.diary-content {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.diary-entry {
  padding: 15px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 15px;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.entry-date {
  font-size: 14px;
  font-weight: 600;
  color: #667eea;
  margin-bottom: 10px;
}

.entry-text {
  font-size: 14px;
  color: #4a5568;
  line-height: 1.5;
}

/* 邮件应用 */
.mail-app {
  height: 100%;
}

.mail-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mail-item {
  padding: 15px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 15px;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: transform 0.2s ease;
}

.mail-item:hover {
  transform: translateX(5px);
}

.mail-item.unread {
  background: rgba(102, 126, 234, 0.1);
  border-left: 4px solid #667eea;
}

.mail-sender {
  font-size: 14px;
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 5px;
}

.mail-subject {
  font-size: 16px;
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 5px;
}

.mail-preview {
  font-size: 14px;
  color: #4a5568;
  line-height: 1.4;
  margin-bottom: 5px;
}

.mail-time {
  font-size: 12px;
  color: #718096;
  text-align: right;
}

/* 响应式设计 */
@media (max-width: 768px) {
  /* Header响应式 */
  .app-header {
    height: 36px;
    /* 减少高度 40px → 36px */
    padding: 0 12px;
    /* 减少左右padding */
  }

  .app-title {
    font-size: 15px;
    /* 减小字体 16px → 15px */
  }

  .app-header-btn {
    font-size: 12px;
    /* 进一步减小字体 13px → 12px */
    padding: 2px 4px;
    /* 进一步减小padding */
    margin-left: 2px;
    /* 进一步减小左边距 */
    min-width: 34px;
    /* 减小最小宽度 */
  }

  .app-header-btn i {
    font-size: 13px;
  }

  .app-header-right {
    gap: 5px;
    /* 减小间距 6px → 5px */
  }

  .viewer-count {
    font-size: 11px;
    /* 减小字体 12px → 11px */
    padding: 2px 5px;
    /* 减小padding */
    margin-right: 2px;
    /* 减小右边距 */
  }

  .viewer-count i {
    font-size: 9px;
    /* 减小图标 10px → 9px */
  }

  .app-content {
    height: calc(100% - 36px);
    /* 更新高度计算 */
  }

  .mobile-phone-frame {
    width: 80%;
    max-width: 300px;
  }

  .mobile-phone-trigger {
    width: 30px;
    height: 30px;
    font-size: 14px;
  }

  .weather-card {
    padding: 15px;
  }

  .current-time {
    font-size: 24px;
  }

  .app-icon-bg {
    width: 50px;
    height: 50px;
    font-size: 24px;
  }

  .app-label {
    font-size: 14px;
  }

  .app-grid {
    margin-top: 0;
  }
}

/* 滚动条样式 */
.app-content::-webkit-scrollbar {
  width: 4px;
}

.app-content::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
}

.app-content::-webkit-scrollbar-thumb {
  background: rgba(102, 126, 234, 0.3);
  border-radius: 2px;
}

.app-content::-webkit-scrollbar-thumb:hover {
  background: #c3c3c3;
}

/* 直播应用特殊处理：禁用整体滚动条 */
.app-content:has(.live-app) {
  overflow: hidden !important;
}

/* 兼容性备用方案：通过属性选择器 */
.app-content[data-app='live'] {
  overflow: hidden !important;
}

/* 加载占位符样式 */
.loading-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 200px;
  color: var(--text-color);
  opacity: 0.7;
}

.loading-icon {
  font-size: 24px;
  margin-bottom: 8px;
  animation: spin 1s linear infinite;
}

.loading-text {
  font-size: 14px;
  opacity: 0.8;
}

/* 新的应用加载状态样式 */
.app-loading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 40px 20px;
  text-align: center;
  background: var(--bg-color, #f8f9fa);
}

.loading-spinner {
  margin-bottom: 24px;
}

.spinner-ring {
  width: 60px;
  height: 60px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #007AFF;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.app-loading-container .loading-text {
  font-size: 18px;
  font-weight: 500;
  color: var(--text-color, #333);
  margin-bottom: 8px;
  opacity: 1;
}

.loading-tip {
  font-size: 14px;
  color: var(--text-secondary, #666);
  margin-bottom: 24px;
  opacity: 0.8;
}

.loading-progress {
  width: 200px;
  height: 4px;
  background-color: #f0f0f0;
  border-radius: 2px;
  overflow: hidden;
}

.progress-bar {
  width: 100%;
  height: 100%;
  position: relative;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #007AFF, #34C759);
  border-radius: 2px;
  width: 0%;
  transition: width 0.3s ease;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* 错误消息样式 */
.error-message {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 200px;
  color: var(--text-color);
  text-align: center;
  padding: 20px;
}

.error-icon {
  font-size: 24px;
  margin-bottom: 8px;
}

.error-title {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 8px;
}

.error-details {
  font-size: 12px;
  opacity: 0.7;
  margin-bottom: 16px;
}

.retry-button {
  background: var(--gradient-primary);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s ease;
}

.retry-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.retry-button:active {
  transform: scale(0.95);
}

/*zhishishutiao*/
/* 天气卡片样式 */
.weather-container {
  background-color: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.weather-card {
  background: none;
  box-shadow: none;
  border-radius: 0;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

.weather-time {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  margin-top: 20px;
}

.current-date {
  font-size: 24px;
  color: #808080;
  font-weight: 400;
}

.current-time {
  color: #585858;
  font-size: clamp(40px, 8vw, 80px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.05em;
}

.weather-info {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  background-color: rgba(128, 128, 128, 0.2);
  border-radius: 20px;
  padding: 10px 15px;
  gap: 10px;
}

.weather-desc,
.weather-temp,
.weather-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #585858;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  height: auto;
  width: auto;
  border-radius: 0;
}

.weather-desc {
  font-size: 16px;
}

.weather-temp {
  font-size: 16px;
}

.weather-icon {
  font-size: 16px;
}

.weather-icon {
  font-size: 0;
  position: relative;
}

.weather-icon::before {
  content: '☁';
  /* 云图标 */
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.phone-container {
  width: 375px;
  padding: 20px;
  background: #3a3a3c;
  border-radius: 40px;
  box-shadow: 10px 10px 25px #1f1f1f, -10px -10px 25px #4a4a4c;
  margin: 20px auto;
}

.app-grid {
  display: flex;
  flex-direction: column;
  gap: 0 !important;
}

.app-row {
  display: flex;
  justify-content: space-around;
}

.app-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s ease-out;
  margin-bottom: 10px;
}


.app-label {
  margin-top: 8px;
  font-size: 14px;
  color: #fff;
  font-weight: 500;
}

.app-icon-bg {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  position: relative;
  overflow: hidden;

  border-radius: 16px !important;
  background: rgba(30, 30, 30, 0.25) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  box-shadow: 0px 8px 24px rgba(0, 0, 0, 0.4), inset 1px 1px 2px rgba(255, 255, 255, 0.25) !important;
  transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
}



.app-icon-bg {
  font-size: 0;
}

.bottom-decoration {
  display: none !important;
}

.cute-animal {
  display: none !important;
}

/* 图标 CSS 定义区域【蚀刻版】 */
/* 1. "信息"图标 */
.app-icon[data-app='messages'] .app-icon-bg::before,
.app-icon[data-app='messages'] .app-icon-bg::after {
  content: '';
  position: absolute;
  box-sizing: border-box;
  transition: all 0.2s ease;
}

.app-icon[data-app='messages'] .app-icon-bg::before {
  width: 28px;
  height: 28px;
  background-color: rgba(0, 0, 0, 0.3);
  bottom: 10px;
  left: 10px;
  border-radius: 14px 14px 5px 14px;
  transform: rotate(10deg);
}

.app-icon[data-app='messages'] .app-icon-bg::after {
  width: 26px;
  height: 26px;
  top: 10px;
  right: 10px;
  background-color: rgba(0, 0, 0, 0.3);
  background-image: repeating-linear-gradient(
    to bottom,
    transparent,
    transparent 3px,
    rgba(0, 0, 0, 0.2) 3px,
    rgba(0, 0, 0, 0.2) 5px
  );
  background-size: 100% 8px;
  background-position: center 6px;
  border-radius: 16px 16px 16px 5px;
}

/* 2. "任务"图标 */
.app-icon[data-app='task'] .app-icon-bg::before,
.app-icon[data-app='task'] .app-icon-bg::after {
  position: absolute;
  box-sizing: border-box;
  transition: all 0.2s ease;
}

.app-icon[data-app='task'] .app-icon-bg::before {
  content: '';
  width: 34px;
  height: 40px;
  top: 10px;
  left: 13px;
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: 4px;
  box-shadow: inset 0px 6px 0px 0px rgba(0, 0, 0, 0.15);
}

.app-icon[data-app='task'] .app-icon-bg::after {
  content: '✓';
  color: rgba(0, 0, 0, 0.6);
  font-size: 25px;
  font-weight: bold;
  line-height: 1;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -40%);
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.05);
}

/* 3. "论坛"图标 */
.app-icon[data-app='forum'] .app-icon-bg::before,
.app-icon[data-app='forum'] .app-icon-bg::after {
  content: '';
  position: absolute;
  box-sizing: border-box;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.app-icon[data-app='forum'] .app-icon-bg::after {
  width: 24px;
  height: 24px;
  background-color: rgba(0, 0, 0, 0.35);
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
}

.app-icon[data-app='forum'] .app-icon-bg::before {
  width: 24px;
  height: 24px;
  background-color: rgba(0, 0, 0, 0.25);
  top: 24px;
  left: 8px;
  box-shadow: 20px 0 0 0 rgba(0, 0, 0, 0.4);
}

/* 4. "购物"图标 */
.app-icon[data-app='shop'] .app-icon-bg::before,
.app-icon[data-app='shop'] .app-icon-bg::after {
  content: '';
  position: absolute;
  box-sizing: border-box;
  transition: all 0.2s ease;
}

.app-icon[data-app='shop'] .app-icon-bg::before {
  width: 32px;
  height: 26px;
  background-color: rgba(0, 0, 0, 0.3);
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%) skewY(-5deg);
  border-radius: 4px 4px 6px 6px;
  border-top: 5px solid rgba(0, 0, 0, 0.4);
}

.app-icon[data-app='shop'] .app-icon-bg::after {
  content: '★';
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 50%;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 14px;
  line-height: 1;
  color: rgba(0, 0, 0, 0.5);
  text-shadow: none;
}

/* 5. "直播"图标 */
.app-icon[data-app='live'] .app-icon-bg::before,
.app-icon[data-app='live'] .app-icon-bg::after {
  content: '♪' !important;
  position: absolute !important;
  font-weight: bold;
  line-height: 1;
  color: rgba(0, 0, 0, 0.5);
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.05);
}

.app-icon[data-app='live'] .app-icon-bg::before {
  font-size: 32px;
  transform: translate(-6px, 6px) rotate(-15deg);
  opacity: 0.8;
}

.app-icon[data-app='live'] .app-icon-bg::after {
  font-size: 40px;
  transform: translate(6px, -4px) rotate(10deg);
}

/* 6. "背包"图标 */
.app-icon[data-app='backpack'] .app-icon-bg::before,
.app-icon[data-app='backpack'] .app-icon-bg::after {
  content: '';
  position: absolute;
  box-sizing: border-box;
  background-color: transparent;
  transition: all 0.2s ease;
}

.app-icon[data-app='backpack'] .app-icon-bg::before {
  width: 20px;
  height: 10px;
  border: 4px solid rgba(0, 0, 0, 0.5);
  border-bottom: none;
  border-radius: 12px 12px 0 0;
  top: 13px;
  left: 50%;
  transform: translateX(-50%);
}

.app-icon[data-app='backpack'] .app-icon-bg::after {
  width: 34px;
  height: 24px;
  background-color: rgba(0, 0, 0, 0.4);
  border-radius: 4px 4px 6px 6px;
  top: 25px;
  left: 50%;
  transform: translateX(-50%);
}

/* 7. "设置"图标 */
.app-icon[data-app='settings'] .app-icon-bg::before,
.app-icon[data-app='settings'] .app-icon-bg::after {
  content: '';
  position: absolute;
  left: 12px;
  width: 36px;
  height: 12px;
  transition: all 0.2s ease;
  background-repeat: no-repeat;
}

.app-icon[data-app='settings'] .app-icon-bg::before {
  top: 16px;
  background-image: radial-gradient(circle, rgba(0, 0, 0, 0.6) 50%, transparent 51%),
    linear-gradient(rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.25));
  background-size: 12px 12px, 100% 4px;
  background-position: 0% center, center center;
}

.app-icon[data-app='settings'] .app-icon-bg::after {
  top: 32px;
  background-image: radial-gradient(circle, rgba(0, 0, 0, 0.6) 50%, transparent 51%),
    linear-gradient(rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.25));
  background-size: 12px 12px, 100% 4px;
  background-position: 100% center, center center;
}

/* 8. "微博"图标 */
.app-icon[data-app='weibo'] .app-icon-bg::before {
  content: '\f06e';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  position: absolute;
  font-size: 28px;
  color: rgba(0, 0, 0, 0.3);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  transition: all 0.2s ease;
  content:''
}

/* 9. "API"图标 */
.app-icon[data-app='api'] .app-icon-bg::before {
  content: '\f1e6';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  position: absolute;
  font-size: 28px;
  color: rgba(0, 0, 0, 0.3);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  transition: all 0.2s ease;
  content:''
}

.config-section {
  padding: 10px !important;
}

.avatars-section {
  background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%) !important;
}

.config-field small,
.config-field label {
  color: #666 !important;
}

.home-screen input[type='text'],
.home-screen textarea,
.home-screen select {
  background: #eee !important;
}

.weibo-auto-listener-status {
  display: none !important;
}

/* 小屏幕响应式设计 */
@media (max-width: 480px) {
  /* Header响应式 */
  .app-header {
    height: 32px;
    /* 进一步减少高度 36px → 32px */
    padding: 0 10px;
    /* 进一步减少左右padding */
  }

  .app-title {
    font-size: 14px;
    /* 进一步减小字体 15px → 14px */
  }

  .app-header-btn {
    font-size: 10px;
    /* 进一步减小字体 12px → 10px */
    padding: 1px 3px;
    /* 进一步减小padding */
    margin-left: 1px;
    /* 进一步减小左边距 */
    min-width: 30px;
    /* 减小最小宽度 */
  }

  .app-header-btn i {
    font-size: 11px;
  }

  .app-header-right {
    gap: 4px;
    /* 进一步减小间距 5px → 4px */
  }

  .viewer-count {
    font-size: 10px;
    /* 进一步减小字体 11px → 10px */
    padding: 1px 4px;
    /* 进一步减小padding */
    margin-right: 1px;
    /* 进一步减小右边距 */
  }

  .viewer-count i {
    font-size: 8px;
    /* 进一步减小图标 9px → 8px */
  }

  .app-content {
    height: calc(100% - 32px);
    /* 更新高度计算 */
  }
}

/* 购物应用 header 橙色主题按钮，仅用于 shop 应用右侧功能键 */
.shop-accent-btn {
  color: #fff !important;
  background: linear-gradient(135deg, #ffb46b 0%, #ff7e29 100%);
  border: none;
}

.shop-accent-btn:hover {
  filter: brightness(1.05);
}
.mobile-api-config-form #api-system-prompt{display: none;}
